package com.jbp.utils.seqGen;

/**
 * 序列号生成工具
 *
 */
public class SeqGenTool {

	/**
	 * 长度18纯数字字符串序列号
	 */
	public static String seq() {
		return String.valueOf(SeqFactory.getInstance().nextId());
	}

	private static class SeqFactory {
		static SnowFlakeIdGen snowFlakeIdGen = new SnowFlakeIdGen(0, 0);

		static SnowFlakeIdGen getInstance() {
			return SeqFactory.snowFlakeIdGen;
		}
	}

}
